package com.zzyl.nursing.controller.member;

import com.zzyl.common.core.controller.BaseController;
import com.zzyl.common.core.page.TableDataInfo;
import com.zzyl.serve.domain.NursingProject;
import com.zzyl.serve.service.INursingProjectService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 小程序端 - 服务项相关接口
 *
 * @Author haoye
 * @Date 2025/10/23 1:22
 */
@RestController("wechatNursingProjectController")
@Api(tags = "小程序端 - 服务项相关接口")
@RequestMapping("/member/orders")
public class NursingProjectController extends BaseController {

    @Autowired
    private INursingProjectService nursingProjectService;

    /**
     * 查询服务项列表
     * @param nursingProject
     * @return
     */
    @GetMapping("/project/page")
    @ApiOperation("查询服务项列表")
    public TableDataInfo projectList(NursingProject nursingProject) {
        startPage();
        List<NursingProject> list = nursingProjectService.selectNursingProjectList(nursingProject);
        return getDataTable(list);
    }
}
